Repository navigation
KZN-19166 - Support calling the admin CLI with current credentials - #38
Merged
Merged
Conversation
There was a problem hiding this comment.
🔵 Needs a closer look
Missing contract documentation prevents completing the required compatibility validation of the authentication and execution integration.
No open issues 🎉
What changed in this PR
Adds appbuilder admin so plugin developers can run Kizen’s admin CLI using their current appbuilder credentials.
Changes:
- Adds admin command forwarding and account-bound authentication.
- Provisions a pinned Kizen CLI in a private Python environment and shares Python discovery with the local code-step runner.
- Adds tests, documents usage, and bumps the CLI to version 1.17.0.
The required .copilot-docs/ documentation was unavailable during review, leaving contract validation incomplete.
| File | Description |
|---|---|
| src/server/pythonExecutor.ts | Uses shared Python discovery helpers. |
| src/program.ts | Registers the admin command. |
| src/program.test.ts | Tests admin wiring and argument forwarding. |
| src/lib/pythonProbe.ts | Extracts shared Python version probing and selection. |
| src/lib/pythonProbe.test.ts | Tests interpreter selection for both runners. |
| src/lib/oauthCommands.ts | Adds account-bound token retrieval. |
| src/lib/oauthCommands.test.ts | Tests account binding and account-switch failures. |
| src/lib/kizenVenv.ts | Provisions, verifies, caches, and prunes Kizen environments. |
| src/lib/kizenVenv.test.ts | Tests installation, recovery, concurrency, and pruning. |
| src/lib/kizenAdmin.ts | Implements admin parsing, session setup, and process execution. |
| src/lib/kizenAdmin.test.ts | Tests authentication setup, forwarding, and process handling. |
| src/commands/auth.ts | Exposes account-binding options for auth-header. |
| src/commands/admin.ts | Defines admin command wiring and help. |
| src/__snapshots__/program.test.ts.snap | Adds admin to the help snapshot. |
| README.md | Documents admin usage, installation, and authentication behavior. |
| package.json | Bumps the version to 1.17.0. |
| CONTRIBUTING.md | Updates version-bump guidance for pull requests. |
Review effort: Balanced
|
|
||
| return [signal, forward] as const; | ||
| }), | ||
| ['SIGINT', (): void => undefined] as const, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Support wrapper for calling the admin CLI directly from the app builder
Jira: https://kizen.atlassian.net/browse/KZN-19166